<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../public/require/require.min.js"></script>
</head>

<body>
    <script>
    require.config({
        baseUrl: "./",
        paths:{
            'jquery':'../../public/jquery-2.2.3.min.js',
            'layer':'../../public/layer.m.js'
        },
        map: {
            "*": {
                css: "../../public/require/css.min.js",
                text: "../../public/require/text.min.js"
            }
        },
        shim:{
            'layer':{
                'deps':['jquery','layer']
            }
        }
    })
    </script>
<script type="text/javascript">
    require(['layer'],function ($) {
        
    })
</script>
</body>

</html>
